<?php

namespace app\common\dict;

class LogLevelDict
{

    const INFO = 'info';

    const WARNING = 'warning';

    const ERROR = 'error';

    const DEBUG = 'debug';

    const NOTICE = 'notice';

    const SUCCESS = 'success';



    public static function getDict(): array
    {
        return [
            self::INFO => '信息',
            self::WARNING => '警告',
            self::ERROR => '错误',
            self::DEBUG => '调试',
            self::NOTICE => '通知',
            self::SUCCESS => '成功'
        ];
    }


    public static function getDictValue(string $key): string
    {
        $dict = self::getDict();
        return $dict[$key] ?? '';
    }



}